﻿@model IEnumerable<DoAnWebsite.Models.News>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout_Site.cshtml";
}
<script>
    $(document).ready(function () {
        $(".nav li").removeClass("active");
        $('#home').addClass('active');
    });
</script>
<div class="main-content left clearfix">
    <div class="marginleft left">
        @foreach (var item in Model)
        {            
            <div class="bv clearfix">
                @{Html.RenderAction("Submenubox", "Share", new { id = item.GroupNewsId });}
                <div class=" left BottomNews1Bv">
                    <div class="left">
                        <a href=@Url.Action("NewsDetail", "Home", new { id = item.NewsId }) target="_self">
                            <img class="image-home img-circle" src="../..@item.Image" height="130" width="130" alt="Ảnh Minh Họa" />
                        </a>
                    </div>
                    <div class="right w425">
                        <div style="margin-bottom: 10px;">@Html.ActionLink(item.Name, "NewsDetail", "Home", new { id = item.NewsId }, null)</div>
                        <div>@Html.Raw(@item.Content).....</div>
                        <div class="right xemtiep">
                            <a href=@Url.Action("NewsDetail", "Home", new { id = item.NewsId }) target="_self" class="btn-mini btn-success" style="color: #FFFFFF">Xem tiếp</a>
                        </div>                        
                    </div>
                </div>
                <div class="left haibaitiep">
                    @{Html.RenderAction("HaiBaiTiep", "Share", new { id = item.GroupNewsId });}
                </div>
                <div class="left BottomNews1BvLienQuan">
                    @{Html.RenderAction("BaiVietLienQuan", "Share", new { id = item.GroupNewsId });}
                </div>
                <div class="clear">
                </div>
            </div>                                  
        }
    </div>
</div>